package com.example.human_resource_management.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.human_resource_management.entry.dto.SalaryEmployeeDto;
import com.example.human_resource_management.entry.po.Salary;
import com.example.human_resource_management.service.SalaryService;
import com.example.human_resource_management.mapper.SalaryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【salary(薪资表)】的数据库操作Service实现
* @createDate 2025-06-09 14:32:19
*/
@Service
public class SalaryServiceImpl extends ServiceImpl<SalaryMapper, Salary>
    implements SalaryService{

    @Autowired
    private SalaryMapper salaryMapper;

    @Override
    public Salary getSalaryById(Long empId) {
        return salaryMapper.selectById(empId);
    }

    @Override
    public List<SalaryEmployeeDto> selectSalaryEmployeeList() {
        return salaryMapper.selectSalaryEmployeeList();
    }
}




